<script>
import BaseDataBox from '../../common/BaseDataBox';
import { reqPost } from 'global/axios';

export default {
  extends: BaseDataBox,

  data() {
    return {
      title: '所属河流事件',
      icon: 'water',
      value: '',
    };
  },

  async mounted() {
    let { status, result } = await reqPost({
      data: {
        solve_is: '已结束|#|ne',
      },
      url: '/emergency/report/rivercount',
    });

    status && (this.value = result);
  },

  methods: {
    click() {
      this.$emit('show');
    },
  },
};
</script>